from datetime import datetime
from typing import Optional, Dict, Any, List
from time import time
from pydantic import BaseModel, EmailStr

from app.helpers.enums import UserRole


class TestBase(BaseModel):
    id : Optional[int]
    current_time : Optional[datetime]


class TestItemResponse(TestBase):
    data : Optional[str]

class LoginForm(BaseModel):
    account: str
    password: str
    t_: str


# github用户请求体
class TestGithubRequest(BaseModel):
    name : Optional[str]

# github用户回应请求体
class TestGithubResponse(BaseModel):
    total_count : Optional[int]
    incomplete_results : Optional[bool]
    items : Optional[List[Dict[Any, Any]]]

class LoginResponse(BaseModel):
    access_token : str
    token_type : str

class PublicKeyResponse(BaseModel):
    publicKey : str



class LoginRequest(BaseModel):
    username: str
    password: str
    # secretKey: str 
